<?php
/**
 * The loop that displays a single post.
 *
 * The loop displays the posts and the post content.  See
 * http://codex.wordpress.org/The_Loop to understand it and
 * http://codex.wordpress.org/Template_Tags to understand
 * the tags used in it.
 *
 * This can be overridden in child themes with loop-single.php.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Gininet 1.0
 */
 get_header(); 

?>

<div class="content-bg content_adword">
	<div class="main">
	<!-- end header -->
		<div id="content">
			<div class="wrapper">
				<div class="item-page">
					<div class="container_24">
						<div id="grid_17_boder" class="grid_17">
							<div id="postpath">
							<?php   if(function_exists('bcn_display'))	{bcn_display();	}else{ ?>
							<a title="<?php _e('Go to homepage', 'leepro_adword'); ?>" href="<?php echo get_settings('home'); ?>/"><?php _e('Home', 'leepro_adword'); ?></a>
							&gt; <?php the_category(', '); ?>
							&gt; <?php the_title(); ?>
							<?php }?>
							</div>
							<div style="clear: both;"></div>
							<div class="post_content">
								<div class="item-page">
									<?php if (is_search()) : ?>
									<h2 class="post_title">Search Results: <span><?php printf( __('Keyword: &#8216;%1$s&#8217;', 'leepro_datienrestaurant'), wp_specialchars($s, 1) ); ?></span></h2>
									<?php else : ?>
										<h2 class="post_title">
										<?php
											// If this is a category archive
											if (is_category()) {
												printf( __('Archive for the <span> &#8216;%1$s&#8217;</span>', 'leepro_datienrestaurant'), single_cat_title('', false) );
											// If this is a tag archive
											} elseif (is_tag()) {
												printf( __('Posts Tagged <span> &#8216;%1$s&#8217;</span>', 'leepro_datienrestaurant'), single_tag_title('', false) );
											// If this is a daily archive
											} elseif (is_day()) {
												printf( __('Archive for <span> &#8216;%1$s&#8216;</span>', 'leepro_datienrestaurant'), get_the_time(__('M d, Y', 'leepro_datienrestaurant')) );
											// If this is a monthly archive
											} elseif (is_month()) {
												printf( __('Archive for <span>&#8216;%1$s&#8216;</span>', 'leepro_datienrestaurant'), get_the_time(__('M, Y', 'leepro_datienrestaurant')) );
											// If this is a yearly archive
											} elseif (is_year()) {
												printf( __('Archive for <span>&#8216;%1$s&#8216;</span>', 'leepro_datienrestaurant'), get_the_time(__('Y', 'leepro_datienrestaurant')) );
											// If this is an author archive
											} elseif (is_author()) {
												_e('Author Archive ', 'leepro_datienrestaurant');
											// If this is a paged archive
											} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
												_e('Blog Archives', 'leepro_datienrestaurant');
											}
											?></h2>
										<?php endif; ?>
										<?php

													/* Run the loop for the archives page to output the posts.
													 * If you want to overload this in a child theme then include a file
													 * called loop-archive.php and that will be used instead.
													 */
													 get_template_part( 'loop', 'archive' );
										?>
										<div id="pagenavi">
												<?php	if(function_exists('wp_paginate')) {
															wp_paginate();
													}else { ?>
														<span class="newer"><?php previous_posts_link(__('Newer Entries', 'leepro_datienrestaurant')); ?></span>
														<span class="older"><?php next_posts_link(__('Older Entries', 'leepro_datienrestaurant')); ?></span>
													<?php } ?>
													<div class="fixed"></div>
										</div>
								</div>
							</div>
						</div>
						<div class="grid_6">
							<?php get_sidebar();?>
						</div>
				</div>
				</div>

			</div>
		</div>
		</div>
</div>

<?php get_footer(); ?>
